package com.itheima.controller;

import com.itheima.common.R;
import com.itheima.service.SetmealService;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author tcotk
 */
@RestController
public class SetmealController {
   @Resource
    private SetmealService service;

   @GetMapping("/setmeal/list")
    private R<Object> selectAll(String categoryId,Integer status){
    return R.success(service.selectAllByCategoryId(categoryId,status));
   }
}
